﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiteratureManage.Domain.IntegrationTest
{
    using Castle.MicroKernel.Registration;
    using Castle.Windsor;
    using Castle.Windsor.Configuration.Interpreters;

    public static class ContainerBuilder
    {
        public static IWindsorContainer Build()
        {
            var container = new WindsorContainer(new XmlInterpreter("Windsor.config"));
            //container.Register(
            //    Component.For<IUserDao>().ImplementedBy<UserDao>().LifeStyle.Transient,
            //    Component.For<ICustomerDao>().ImplementedBy<CustomerDao>().LifeStyle.Transient
            //    );
            return container;
        }
    }
}
